package com.bill99.golden.inf.sso.model;

public class SessionItem {
	String name;
	long createTime;
	long updateTime;
	Object value;

	public SessionItem(String name, Object value) {
		super();
		this.name = name;
		this.value = value;
		this.createTime = System.currentTimeMillis();
		this.updateTime = System.currentTimeMillis();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(long updateTime) {
		this.updateTime = updateTime;
	}

	public void refreshUpdateTime() {
		this.updateTime = System.currentTimeMillis();
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "SessionItem [name=" + name + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + ", value=" + value + "]";
	}

}
